how to use conditional operator